﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace LetLord.Models
{
    [Table("TenantGroupMember")]
    public class TenantGroupMember
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int TenantGroupMemberId { get; set; }
        public string TenantGroupMemberName { get; set; }
        public string TenantGroupMemberAge { get; set; }

        // 1:many with Tenant - base UserProfile
        public int UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual Tenant Tenant { get; set; }
    }
}